<div id="_page" style="margin-top:15px;display:none;"></div>
<div id="myGrid" ></div>
<div id="myPage" class="pages"></div>
<script>
	var myPage;
	var flag;
	var pageTemp;
	var valflagTemp;
	//modified by andy.ten@tom.com 
	function __extQuery__(page,valflag, sFormName)
	{   
		var formName;
		if(formName)
			formName = sformName;
		else
			formName = "fm";
		pageTemp=page;
		valflagTemp = valflag;
		if(valflag==false||flag==false){
			flag = false;
		}
		if(flag!=false)
		{
			
			if(submitForm(formName)) {
				makeNomalFormCall(url+(url.lastIndexOf("?") == -1?"?":"&")+"curPage="+page,callBack,formName,'queryBtn'); 
			}
		}else{
			makeNomalFormCall(url+(url.lastIndexOf("?") == -1?"?":"&")+"curPage="+page,callBack,formName,'queryBtn');
		}
		
	}
	function __extQueryAddFunction__(page,fun){
		if(submitForm(formName)) makeNomalFormCall(url+(url.lastIndexOf("?") == -1?"?":"&")+"curPage="+page,callBack,formName,'queryBtn',fun); 
	}
	
	window.document.onkeydown = function (){
		if(event.keyCode==13){
			__extQuery__(1,valflagTemp);
		};
	}
</script>
